#!/usr/bin/env python
#coding=utf-8

import threading
import xmlrpclib

class CallRPC(threading.Thread):
    def __init__(self):
        threading.Thread.__init__(self)
    
    def run(self):
        print "Line 14..."
        s = xmlrpclib.ServerProxy('http://localhost:62752')
        #s.send(user, message)        
        #s.decode("hello")
        print s.system.listMethods()
        print s.decode("hello")
        s.receiving("WB rui 1 op1")
        s.receiving("WB xiao 2 op2")
        print s.synchronize()
        
myCallRPC = CallRPC()
myCallRPC.start()